package material.encapsulation_algorithm.prepareRecipe;

/**
 * 茶和咖啡都是继承自咖啡因饮料
 */
public class Tea extends CaffeineBeverage {
    @Override
    public void brew() {
        System.out.println("将茶叶放入沸水中");
    }

    @Override
    public void addCondiments() {
        System.out.println("添加柠檬");
    }
}
